package com.liang.cloud.Exception;

import com.liang.cloud.Emun.ResultEnum;
import lombok.Getter;

/**
 * @author: 余亮亮
 * @description:
 * @create: 2019-12-29 13:40:01
 **/
@Getter
public class SellException extends RuntimeException {

    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());

        this.code = resultEnum.getCode();
    }

    public SellException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }
}
